package serializer

import "todo_list/model"

type User struct {
	ID       uint
	UserName string
	Status   string
	CreateAt int64
}

//BuildUser 序列化用户
func BuildUser(user model.User) User {
	return User{
		ID:       user.ID,
		UserName: user.UserName,
		CreateAt: user.CreatedAt.Unix(),
	}
}
